Starting with a blank web application

You can use the webapps/build.xml file to create a project structure to help you get started quickly.
Just run 'ant new' and follow instructions.

 

new:
     [echo]
     [echo]             +=============================================================+
     [echo]             |              -- Create a new web application  --            |
     [echo]             +=============================================================+
     [echo]

    [input] Enter the name of your new application [myapp]? ww-sample
     [echo] Creating 'ww-sample' web application...
     [copy] Copying 7 files to /Users/rainerh/projects/webwork/webapps/ww-sample
     [copy] Copying 1 file to /Users/rainerh/projects/webwork/webapps/ww-sample
     [echo]
     [echo]             +=============================================================+
     [echo]             |    -- Your Web Application was created successfully! --     |
     [echo]             |                                                             |
     [echo]             | Now you should be able to cd to your application and run:   |
     [echo]             | > ant build -Dwebapp=ww-sample                              |
     [echo]             +=============================================================+

BUILD SUCCESSFUL

 

This task creates a new directory within the webapps dir.

For example, this is the setup for a new webapp project created with 'ant new' webapp name 'ww-sample':

webapps/
  ww-sample/
    src/
      java/
         com/opensymphony/webwork/example/HomeAction.java -- A simple action example implementation
      webapp/
        index.jsp -- redirects to home.action
        WEB-INF/
          classes/
            webwork.properties -- Simple properties to use Spring and run webwork in devMode
            xwork.xml -- Basic action mapping sample with 1 action mapping
          pages/
            home.jsp -- The home.jsp referenced via the HomeAction
          applicationContext.xml -- blank Spring definition file. Add your Spring beans here.
          web.xml -- basic web.xml for webwork

 

You can now use the newly created project structure to get your webwork-based project
running.

You may want to look at the other sample webapp projects, to get some examples of advanced usages.
Have a look at the showcase, starter, or shopping-cart applications.